package com.lyf.design.practice.theory.behavior.strategy.sample;

/**
 * @author LYF
 * @date 2022/6/22
 */
public class Sale {
    SaleStrategy strategy;

    public Sale(SaleStrategy strategy) {
        this.strategy = strategy;
    }

    public Sale() {
    }

    public void setStrategy(SaleStrategy strategy) {
        this.strategy = strategy;
    }

    Double getPrize(Person person){
        return strategy.getPrize(person) ;
    }

}
